@echo off
:: 获取当前脚本所在目录（包含末尾的反斜杠，如 "D:\scripts\"）
set "script_dir=%~dp0"
:: 切换到该目录
cd /d "%script_dir%"
schtasks /create /tn laravel_schedule /ru system /tr %script_dir%run_schedule.bat /sc minute /mo 1 /st 07:00:00